#if !defined(AFX_ADOTOOL_H__5D6B3FAE_9AB4_4FB3_8CFC_700F173B25BC__INCLUDED_)
#define AFX_ADOTOOL_H__5D6B3FAE_9AB4_4FB3_8CFC_700F173B25BC__INCLUDED_

//import ado
#define INITGUID
#import "c:\Program Files\Common Files\System\ado\msado15.dll"rename_namespace ("ADOCG") rename("EOF", "EndOfFile")
using namespace ADOCG;

#include "icrsint.h"
#include "DataStructDefine.h"
#include <vector>
#include "LabelEx.h"
#include "PatternSetterDlg.h"

using namespace std;
class CPatternSetterDlg;

class CAdoTool
{
public:
	CAdoTool(CPatternSetterDlg *pDlg=NULL);
public:
	~CAdoTool(void);

public:
	void GetDaSizeList(CObArray &arrDaSizeList);
	void GetXiaoSizeList(CObArray &arrXiaoSizeList);
	void Disconnect(void);
	BOOL Connect(void);
	BOOL GetIniInfo(void);
	void InsertPattern( int nGroupId,int nType,vector<CLabelEx*> &arrLabels,int nEnablePages);
	_ConnectionPtr m_pConn;

	BOOL m_bSet;

	BOOL m_bResult;

	CString m_strDSN;
	CString m_strUser;
	CString m_strPwd;
	CPatternSetterDlg *m_pDlg;
};

#endif // !defined(AFX_ADOTOOL_H__5D6B3FAE_9AB4_4FB3_8CFC_700F173B25BC__INCLUDED_)